Skip to content

feat(eng-2261): License policy CLI#113

Merged
Leeoc merged 8 commits into
masterfrom
eng-2261/license-policy-cli
May 11, 2023
Merged

feat(eng-2261): License policy CLI#113
Leeoc merged 8 commits into
masterfrom
eng-2261/license-policy-cli

Conversation

@Leeoc
Copy link
Copy Markdown
Contributor

@Leeoc Leeoc commented May 10, 2023

Adds functionality to manage license policies via CLI

image

Comment thread cloudsmith_cli/cli/commands/policy/license.py Outdated
Comment thread cloudsmith_cli/cli/commands/policy/license.py
Comment thread cloudsmith_cli/core/api/orgs.py
Comment thread cloudsmith_cli/cli/commands/policy/license.py Outdated
Comment thread cloudsmith_cli/cli/commands/policy/license.py Outdated
Comment thread cloudsmith_cli/cli/commands/policy/licence.py
Comment thread cloudsmith_cli/cli/commands/policy/licence.py Outdated
Comment thread cloudsmith_cli/core/api/orgs.py Outdated
Comment thread cloudsmith_cli/cli/commands/policy/licence.py
Comment thread cloudsmith_cli/cli/commands/policy/licence.py
Comment thread cloudsmith_cli/cli/commands/policy/licence.py
Comment thread cloudsmith_cli/cli/commands/policy/licence.py
Comment thread cloudsmith_cli/cli/commands/policy/licence.py
Comment thread cloudsmith_cli/cli/commands/policy/licence.py
Comment thread cloudsmith_cli/cli/commands/policy/licence.py
@Leeoc Leeoc marked this pull request as ready for review May 10, 2023 15:43
@chrisimcevoy
Copy link
Copy Markdown
Collaborator

Looks good at first glance. I think I confused you earlier with the whole license/licence discussion. We should adhere to "International English" in anything user-facing like commands and output. Maybe it would be better to switch back to using "license" everywhere to avoid confusion, and if you have any cases where a variable named "license" shadows the builtin, then you could just append an underscore to the variable name i.e. license_

@Leeoc
Copy link
Copy Markdown
Contributor Author

Leeoc commented May 11, 2023

Looks good at first glance. I think I confused you earlier with the whole license/licence discussion. We should adhere to "International English" in anything user-facing like commands and output. Maybe it would be better to switch back to using "license" everywhere to avoid confusion, and if you have any cases where a variable named "license" shadows the builtin, then you could just append an underscore to the variable name i.e. license_

The only place license was an issue was for creating the base AliasGroup, just realised I can set the group to license and have the function def as licence to avoid the builtin... :noob:

Comment thread cloudsmith_cli/cli/commands/policy/license.py
Comment thread cloudsmith_cli/cli/commands/policy/license.py
Comment thread cloudsmith_cli/cli/commands/policy/license.py
Comment thread cloudsmith_cli/cli/commands/policy/license.py
Comment thread cloudsmith_cli/cli/commands/policy/license.py
Copy link
Copy Markdown
Collaborator

@chrisimcevoy chrisimcevoy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, just a handful of tiny nitpicks. Approved in advance.

Comment thread cloudsmith_cli/cli/commands/policy/license.py Outdated
Comment thread cloudsmith_cli/cli/commands/policy/license.py
Comment thread cloudsmith_cli/cli/commands/policy/license.py Outdated
Comment thread cloudsmith_cli/cli/tests/commands/policy/test_licence.py Outdated
Comment thread cloudsmith_cli/cli/tests/commands/policy/test_licence.py Outdated
Comment thread cloudsmith_cli/cli/commands/policy/license.py
Comment thread cloudsmith_cli/cli/commands/policy/license.py
Comment thread cloudsmith_cli/cli/commands/policy/license.py
Comment thread cloudsmith_cli/cli/commands/policy/license.py
@qlty-cloud-legacy
Copy link
Copy Markdown

Code Climate has analyzed commit b315a2a and detected 15 issues on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 3
Duplication 12

The test coverage on the diff in this pull request is 96.2% (50% is the threshold).

This pull request will bring the total coverage in the repository to 56.9% (1.6% change).

View more on Code Climate.

@Leeoc Leeoc merged commit 28f5e3c into master May 11, 2023
@Leeoc Leeoc deleted the eng-2261/license-policy-cli branch May 11, 2023 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants